
#@layoutT('版本更新')
#define main()
<div class="container-wrap">
   #@formStart()
      #@queryStart('关键词查询')
   <input type="search" name="keyword" autocomplete="off" class="layui-input" placeholder="搜索关键词" style="padding-left:20px"/>
   <i class="layui-icon layui-icon-search" style="position: absolute;top:7px;left:2px"></i>
      #@queryEnd()
   #@formEnd()

   #@table()
</div>

<script type="text/html" id="barDemo">
   <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
#end

#define js()
<!-- 分页表格 -->
<script>
    gridArgs.title='版本更新';
    gridArgs.dataId='id';
    gridArgs.deleteUrl='#(path)/apk/version/delete';
    gridArgs.updateUrl='#(path)/apk/version/edit/';
    gridArgs.addUrl='#(path)/apk/version/add';
    gridArgs.gridDivId ='maingrid';
    initGrid({id : 'maingrid'
        ,elem : '#maingrid'
        ,toolbar:'#table_toolbar'//开启头部工具栏，并为其绑定左侧模板
        /*
        ,defaultToolbar:['filter', 'exports', 'print',{//自定义头部工具栏右侧图标。如无需自定义，去除该参数即可
            title:'提示',layEvent: 'LAYTABLE_TIPS',icon: 'layui-icon-tips'
        }]
        */
        ,cellMinWidth: 100
        ,cols : [ [
				 {title: '主键',field : 'id',width : 35,checkbox : true},
				 {title:'序号',type:'numbers',width:35},
				 {title:'版本号',field:'version'},
				 {title:'操作用户',field:'user_code'},
				 {title:'创建时间',field:'create_time'},
				 {title:'apk链接',field:'file_url'},
				 {title:'更新内容',field:'content'},

            {fixed:'right',width : 180,align : 'left',toolbar : '#barDemo'}
            ]]
        ,url:"#(path)/apk/version/list"
        ,searchForm : 'searchForm'
    });

</script>
#end



